<template>
    <div>
        <span class="to"><router-link to="/a">转向A页面1</router-link></span>
        <span class="to"><router-link to="/b">转向B页面2</router-link></span>
        <router-view></router-view>
    </div>
</template>

<script>
    export default {
        name: "first"
    }
</script>

<style scoped>
    .to {
        margin-left: 10px;
    }
</style>